import request from '@/utils/request';

/**
 * 认证
 */
const authApi = {

    /**
     * 登录
     * @param username 
     * @param password 
     * @returns 
     */
    login(username: string, password: string) {
        return request.post('/user/login', { username, password })
    }
}

export default authApi;